package com.liyongjian.xhban.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.liyongjian.xhban.model.emumm.MsgType;
import com.liyongjian.xhban.model.emumm.ReadState;


@Entity
@Table(name = "tb_user_msg")
public class UserMsg extends AbstractEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    public String text;
    public Long userId;
    public Long lookUserId;

    @Column(columnDefinition = "tinyint", name = "typee")
    public MsgType type = MsgType.HY;
    @Column(columnDefinition = "tinyint")
    public ReadState state = ReadState.WD;

    public UserMsg(Long id) {
        this.id = id;
    }

    public UserMsg() {}

}
